package org.gw.building.repositories.dkgg;

import org.gw.building.model.Kcxx;
import org.gw.building.model.Ybmxx;
import org.gw.building.model.base.TzggFj;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface YbmxxRepository extends JpaRepository<Ybmxx, String>{
	@Query("from Ybmxx t where (?1 is null or t.xhgh like ?1 or t.xm like ?1) and t.kc = ?2 order by t.xhgh desc")
	Page<Ybmxx> queryPage(String xhgh, String kc, Pageable pageable);
}
